<?php
session_start();

require("../config/db.php");

$q = "CREATE DATABASE IF NOT EXISTS psm";

mysql_query("$q") or die(mysql_error());
echo("<br />Database Sucefully Created !");

mysql_select_db("$tabl") or die(mysql_error());

$q = "CREATE TABLE IF NOT EXISTS user(
			idUser INT NOT NULL auto_increment,
			Name VARCHAR(30) NOT NULL,
			UserName VARCHAR(30) NOT NULL,
			Password VARCHAR(100) NOT NULL,
			Email VARCHAR(60) NOT NULL,
			Admin TINYINT(11) NOT NULL,
			RegDate DATETIME NOT NULL,
			PRIMARY KEY (idUser))
		TYPE = INNODB";

mysql_query("$q") or die(mysql_error());
echo("<br /><br />Tables Sucefully Created !<br />");
?>